home *** CD-ROM | disk | FTP | other *** search
- ; *******************************************************
- ; Example 1 - Create a word window with a new blank document,
- ; add a link, then get a collection of links.
- ; *******************************************************
- ;
- #include <Word.au3>
- $oWordApp = _WordCreate ()
- $oDoc = _WordDocGetCollection ($oWordApp, 0)
- _WordDocAddLink ($oDoc, "", "www.AutoIt3.com", "", "AutoIt" & @CRLF, "Link to AutoIt")
- $oLinks = _WordDocLinkGetCollection ($oDoc)
- MsgBox(0, "Link Count", @extended)